<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="description" content="" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link href="css/style.css" rel="stylesheet" />
		<script type="text/javascript" src="js/mui.min.js"></script>
		<link rel="stylesheet" href="css/bootstrap.min.css" />
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="js/app.js"></script>
		<title>NUAACMS</title>
	</head>

	<body>
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span12">
					<div class="page-header">
						<h1 id="title">
					</h1>
						<small id="datetime"></small>
					</div>
					<p id="content">
					</p>
				</div>
				<div align="right">
					<a href="#popover" onclick="del_collect()">删除浏览</a>
				</div>
			</div>
		</div>
	</body>
	<script>
		mui.plusReady(function() {
			var infoId = plus.webview.currentWebview().infoId;
			mui.get('http://hs.tunnel.javano.cn/getNewsInfo/' + infoId, {

			}, function(data) {
				infoId = data.id;
				$("#title").text(data.title);
				$("#datetime").text(data.createtime);
				$("#content").text(data.content);
				var oMeta = document.getElementsByTagName('meta')[2]; //第二个
				oMeta.content = data.content;
			}, 'json');
		});

		function del_collect() {
			var infoId = plus.webview.currentWebview().infoId;
			var account = app.getState().account;
			mui.get('http://hs.tunnel.javano.cn/delLook', {
				infoId: infoId,
				account: account,
				datetime:$("#datetime").text()
			}, function(message) {
				mui.alert(message, '提示', '关闭', function(e) {
					mui.openWindow({
						"id": new Date(),
						"url": "lookInfo.html",
						"crateNew": false,
						"styles": {
							top: '0px', //mui标题栏默认高度为45px
							bottom: '50px' //默认为0px，可不定义
						}
					});
				}, 'div')
			}, 'text');

		}
	</script>

</html>